﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>传递多个值</title>
</head>
<body>
<style>
    .bg1 {
        background: #C1FFE4;
    }
    .bg2 {
        width: 120px;
    }
</style>

<div id="app">
    <!-- 使用blog-content组件 -->
     <input-con class="bg2" type="text"></input-con>
</div>

<!--引入vue文件-->
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script>
    const vm = Vue.createApp({});
    vm.component('input-con', {
        template: '<input class="bg1">'
    })
    vm.mount('#app');
</script>
</body>
</html>
